package com.xja.service;

import com.xja.entity.Indent;
import com.xja.entity.Register;
import com.xja.entity.User;
import com.xja.entity.WorkPeople;

import java.util.List;

public interface LwdService {
    public List<User> findAllUser();
    //查询用户是否存在
    public User findUserById(Integer id);
    //修改用户信息
    public Boolean updateUser(User user);
    //删除用户
    public Boolean deleUser(Integer id);
    //创建登记信息
    public Register createRegisterByUserId(Integer id);
    //根据登记添加登记信息删除预定信息
    public boolean updateRegisterAndIndent(Register register);
    public Indent findIndentById(Integer id);
    //查询所有员工
    public List<WorkPeople> findAllWork();
    //根据员工的id查询信息
    public WorkPeople findWorkById(Integer id);
    //修改员工信息
    public Boolean updateWork(WorkPeople workPeople);
    //添加新员工
    public Boolean addWork(WorkPeople workPeople);
    //删除员工
    public Boolean deleWork(Integer id);
}

